import service from '@/api/http';

const userinfoApi = {
  //获取用户vip等级 入参 无
  getUserVip: (params: object) => service.post(`/hall/userInfo/getUserVip`, params),

  // 邮件 入参 无
  userEmailList: (params: object) => service.post(`/hall/playUserEmail/webEmailList`, params),
  // 邮件是否已读 入参 id
  updateReadEmailStatus: (params: object) => service.post(`/hall/playUserEmail/updateReadStatus`, params),
  // 邮件附件领取状态 入参 id
  updateRewardEmailStatus: (params: object) => service.post(`/hall/playUserEmail/updateRewardStatus`, params),
  // 删除所有邮件 入参 无
  deleMail: (params: object) => service.post(`/hall/playUserEmail/deleMail`, params),

  // 所有消息 notice 入参 无
  webNoticeList: (params: object) => service.post(`/hall/playUserNotice/webNoticeList`, params),
  // 消息是否已读 入参 id
  updateReadNoticeStatus: (params: object) => service.post(`/hall/playUserNotice/updateReadStatus`, params),
  // 消息附件领取状态 入参 id
  updateRewardNoticeStatus: (params: object) => service.post(`/hall/playUserNotice/updateRewardStatus`, params),
  // 删除所有消息 入参 无
  deleNotice: (params: object) => service.post(`/hall/playUserNotice/deleMail`, params),
  /**
   * 重置密码
    newPassword: "aa123456"
    typex: 1
    userName: "User88132333"
  */
  resetPassword: (params: object) => service.post(`/hall/user/resetPassword`, params),
  /**
   * 取款密码
    newPassword: "aa123456"
  */
  upWithdrawPassword: (params: object) => service.post(`/hall/user/upWithdrawPassword`, params),
  /**
   * 获取绑定银行卡
    bankType {1:数字, 2:第三方}
  */
  getUserBank: (params: object) => service.post(`/hall/playUserBank/getUserBank`, params),
  /**
   * 更新银行卡
   * object: Type userbank
  */
  upUserBank: (params: object) => service.post(`/hall/playUserBank/upUserBank`, params),
  /**
   * 绑定银行卡
    bankAccount
    bankArea
    bankDefault
    bankNumber
    bankType
  */
  addUserBank: (params: object) => service.post(`/hall/playUserBank/addUserBank`, params),
  /**
   * 邀请好友 获取
  */
  getActivityFriendsTwo: (params: object) => service.post(`/hall/friend/getActivityFriendsTwo`, params),
  /**
   * 邀请好友 查找
  */
  findActivityFriends: (params: object) => service.post(`/hall/friend/findActivityFriends`, params),
  /**
   * 邀请好友 添加
  */
  addJoinFriends: (params: object) => service.post(`/hall/friend/addJoinFriends`, params),
  //
};
export default userinfoApi;
